﻿@using VideoSeller.Business.Data.Enums
@model PersonalViewModel

@{
    ViewBag.Title = "Profile";
    Layout = "~/Views/Shared/_DefaultLayout.cshtml";
}
@Html.Partial("~/Views/Shared/_MainTabs.cshtml", MainTabs.None)
<div style="padding: 10px;">
    <h2>@Html.GetGlobalResource("Common", "UserProfile")</h2>
    <table  class="prof_table">
        <tr>
            <td>
                <table class="prof_in_table_main">
                    <tr>
                        <td class="prof_title">@Html.GetGlobalResource("Common", "Login")</td>
                        <td>@Model.Login</td>
                    </tr>
                    <tr>
                        <td class="prof_title">@Html.GetLocalResource("FirstName")</td>
                        <td>@Model.FirstName</td>
                    </tr>
                    <tr>
                        <td class="prof_title">@Html.GetLocalResource("LastName")</td>
                        <td>@Model.LastName</td>
                    </tr>
                    <tr>
                        <td class="prof_title">@Html.GetLocalResource("BirthDate")</td>
                        <td>@(Model.BirthDate.HasValue ? Model.BirthDate.Value.ToString("dd MMMM yyyy") : "")</td>
                    </tr>
                    <tr>
                        <td class="prof_title">@Html.GetLocalResource("Country")</td>
                        <td>@(Model.Country != null ? Model.Country.Name : string.Empty)</td>
                    </tr>
                    <tr>
                        <td class="prof_title">@Html.GetLocalResource("Sex")</td>
                        <td>
                            @(Model.Sex == Sex.Male ? @Html.GetLocalResource("Male") : @Html.GetLocalResource("Female"))
                        </td>
                    </tr>
                    <tr>
                        <td class="prof_title">@Html.GetLocalResource("About")</td>
                        <td   class="about_client_info">@Model.About</td>
                    </tr>
                    <tr>
                        <td class="prof_title">@Html.GetLocalResource("HomePage")</td>
                        <td><a href="@Model.HomePage" target="_blank">@Model.HomePage</a></td>
                    </tr>
                                    <tr>
                        <td class="prof_title">@Html.GetLocalResource("Language")</td>
                        <td>
                            @Model.language
                        </td>
                    </tr>
                    <tr>
                        <td class="prof_title">@Html.GetLocalResource("OnTheSite")</td>
                        <td>
                            @Model.OnTheSite
                        </td>
                    </tr>

                   </table>
            </td>
            <td>
                <table  class ="prof_in_table pit_1">
                <tr><td>
                    <img src='@Url.Content("~/content/images/video_type_free.png")'class="p_stat_top_img"/>
                    @Model.m_countAll
                    <span class="c_l_fields">@Model.m_Ratin.ToString()</span>

                    </td></tr>
                <tr><td> </td></tr>
                <tr><td>
                    <img src='@Url.Content("~/content/images/view_a.png")'class="p_stat_img"/>
                    @Model.m_Views_anonce
                </td></tr>
                <tr><td>
                    <img src='@Url.Content("~/content/images/view.png")' class="p_stat_img"/>
                    @Model.m_Views_online
                </td></tr>
                <tr><td>
                    <img src='@Url.Content("~/content/images/view_h.png")'class="p_stat_img"/>
                    @Model.m_Views_history
                </td></tr>
                <tr><td>
                    <img src='@Url.Content("~/content/images/like.png")' class="p_stat_img"/>
                    <label class="likeValue">@Model.m_like</label>
                </td></tr>
                <tr><td>
                    <img src='@Url.Content("~/content/images/unlike.png")' class="p_stat_img"/>
                    <label class="unlikeValue">@Model.m_nlike</label>
                </td></tr>

                <tr><td>
                    <img src='@Url.Content("~/content/images/many.png")'class="p_stat_img"/>
                    @Html.GetCurrencyString(Model.m_VSM)
                </td></tr>
                    </table>
            </td>
            <td >
                <table class ="prof_in_table pit_2">
                <tr><td>
                    <img src='@Url.Content("~/content/images/video_type_paid.png")'class="p_stat_top_img"/>
                    @Model.c_countAll
                    <span class="c_l_fieldm">@Model.c_Ratin.ToString()</span>

                    </td></tr>
                <tr><td> </td></tr>

                <tr><td>
                    <img src='@Url.Content("~/content/images/view_a.png")'class="p_stat_img"/>
                    @Model.c_Views_anonce
                </td></tr>
                <tr><td>
                    <img src='@Url.Content("~/content/images/view.png")' class="p_stat_img"/>
                    @Model.c_Views_online
                </td></tr>
                <tr><td>
                    <img src='@Url.Content("~/content/images/view_h.png")'class="p_stat_img"/>
                    @Model.c_Views_history
                </td></tr>
                <tr><td>
                    <img src='@Url.Content("~/content/images/like.png")' class="p_stat_img"/>
                    <label class="likeValue">@Model.c_like</label>
                </td></tr>
                <tr><td>
                    <img src='@Url.Content("~/content/images/unlike.png")' class="p_stat_img"/>
                    <label class="unlikeValue">@Model.c_nlike</label>
                </td></tr>

                <tr><td>
                    <img src='@Url.Content("~/content/images/many.png")'class="p_stat_img"/>
                    @Html.GetCurrencyString(Model.c_VSM)
                </td></tr>
                    </table>



            </td>
        </tr>
    </table>
                            <div class="show_all_aut_link">
                            <a href="@Url.Action("History", "Home", new { author = Model.Login })">@Html.GetLocalResource("GetAllUserContent")</a>
                        </div>

</div>
